package cn.spring.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import cn.spring.bean.Commodity;



public interface CommodityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Commodity record);

    int insertSelective(Commodity record);

    Commodity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Commodity record);

    int updateByPrimaryKey(Commodity record);
    
    List<Commodity> getAll(int typeid);
    
    List<Map<String, Object>> findAll(int empId);
    
    List<Commodity> getByOrdId(int ordId);
    
    List<Map<String, Object>> tong();
    
    int updateIsMai(Integer id);
    
    List<Map<String, Object>> findAllByContent(String key);
    
    List<Commodity> getAll1();
    
    int updateStatsById(Boolean isMai,int id);
    
    int updateIsMaiAll(Boolean isMai);
    
    List<Map<String, Object>> tongShan();
}